/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SmartWaterDispenser {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010040043';
    }

    get categoryName() {
        return '\u667a\u80fd\u996e\u6c34\u673a';
    }

    getColdStatus(params) {
        return command({
            method: 'getColdStatus',
            methodId: 'pDrhJ2hP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getColdSwitch(params) {
        return command({
            method: 'getColdSwitch',
            methodId: 'pdN7PIfA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getColdTemperature(params) {
        return command({
            method: 'getColdTemperature',
            methodId: 'pgh0v80w',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentColdTemperature(params) {
        return command({
            method: 'getCurrentColdTemperature',
            methodId: 'phEqdccU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentHeatTemperature(params) {
        return command({
            method: 'getCurrentHeatTemperature',
            methodId: 'p1vFcJZm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getHeatTemperature(params) {
        return command({
            method: 'getHeatTemperature',
            methodId: 'pGoxsTx5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getHeatingStatus(params) {
        return command({
            method: 'getHeatingStatus',
            methodId: 'p3delElr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getHotSwitch(params) {
        return command({
            method: 'getHotSwitch',
            methodId: 'ptRSCzvC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setColdSwitch(params) {
        return command({
            method: 'setColdSwitch',
            methodId: 'pZgR0NRl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setColdTemperature(params) {
        return command({
            method: 'setColdTemperature',
            methodId: 'ppAXwLPM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setHeatTemperature(params) {
        return command({
            method: 'setHeatTemperature',
            methodId: 'peH3AZyn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setHotSwitch(params) {
        return command({
            method: 'setHotSwitch',
            methodId: 'pUPQ5vnK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SmartWaterDispenser;
